package com.sky.utils;

import com.google.common.hash.BloomFilter;
import com.google.common.hash.Funnels;

import java.nio.charset.Charset;

/**
 * ClassName: BloomUtils
 * Package:
 * Description:
 *
 * @Author:xiaohei
 * @Create 2024/4/14 20:01
 * Version 1.0
 */
public class BloomUtils {
    public static BloomFilter getBloom(){
        BloomFilter<String> filter = BloomFilter
                .create(Funnels.stringFunnel(Charset.defaultCharset()), 10000,0.01);
        return filter;
    }
}
